package com.blog.service.Impl;

import com.blog.dao.ArchiveMapper;
import com.blog.pojo.Blog;
import com.blog.service.ArchiveService;
import org.springframework.stereotype.Service;

import javax.annotation.Resource;
import java.util.List;

/**
 * Copyright (C), 2022
 * Author: 苏大大
 * Date: 2022-06-06 9:19
 * FileName: ArchiveServiceImpl
 * Description: 归档业务实现层
 */
@Service
public class ArchiveServiceImpl implements ArchiveService {

    @Resource
    private ArchiveMapper archiveMapper;


    /***
     * 查询所有归档信息
     * @return
     */
    @Override
    public List<Blog> getArchivesList() {
        return archiveMapper.getArchivesList();
    }
}
